#include <stdio.h>

int main()
{
    int a;
    int b = 2;
    int c = 6;
    int d = 2;
    
    printf("重量\t价格\n");
    
    for (a = 1; a <= 20; ++a)
    {
        printf("%d\t%d\n", a, b);
        b += 2;
    }
    
#include <stdio.h>

int main()
{
    int a;
    int b = 2;
    int c = 6;
    int d = 2;
    
    printf("重量\t价格\n");
    
    for (a = 1; a <= 20; ++a)
    {
        printf("%d\t%d\n", a, b);
        b += 2;
    }
    
    return 0;
}
}